# Maintainer: Breno Leitao <breno.leitao@gmail.com>
pkgname=librtas
pkgver=2.0.2
pkgrel=0
pkgdesc="Librtas provides a set of libraries that access Run-Time Abstraction Services (RTAS)"
url="https://github.com/nfont/librtas"
arch="ppc64le"
options="!check"
license="LGPL"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nfont/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="112d355bc486657289a186d9f1b8c576af55422f1527259a0cd680c07d6fa787aef2dc0cb6322721dc4aa1c5bd1de669f5c4d05e6a07de65262e9e3d4d0283c7  librtas-2.0.2.tar.gz"
